package classloader;

import sun.net.spi.nameservice.dns.DNSNameService;

/**
 * 扩展类加载器示例
 *
 * @author dingwen
 * @date 2021/08/28
 */
public class ClassLoaderDemo2 {
    public static void main(String[] args) {
        // dnsns.jar 位于jre/lib/ext目录下
        ClassLoader classLoader = DNSNameService.class.getClassLoader();
        //classLoader = sun.misc.Launcher$ExtClassLoader@14ae5a5
        System.out.println("classLoader = " + classLoader);
    }
}
